package edu.zut.cs.network.dao.service;

import java.sql.SQLException;

import edu.zut.cs.network.base.BaseMainCase;
import edu.zut.cs.network.dao.service.impl.BookDaoManagerImpl;

public class RunMethod extends BaseMainCase implements Runnable {
	public RunMethod() throws SQLException {
		super();
	}

	BookDaoManager bookDao = new BookDaoManagerImpl();

	@Override
	public void run() {
		logger.info(Thread.currentThread().getName() + "thread：");
		bookDao.findById(9L);
		
		try {
			bookDao.insert(bookDao.getALl("book"), "yrlbook");
			Thread.sleep(1000);
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

}
